package FistDemo;

import java.util.Scanner;

/**
 * 2023/7/11 11:06
 **/
public class IFDemo {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入第一个数字");
        int a=sc.nextInt();
        System.out.println("请输入第二个数字");
        int b=sc.nextInt();
        if(a>b){
            int Max=a;
            System.out.println("MAX="+a);
        } else if (a<b) {
            int Max=b;
            System.out.println("MAX="+b);
        }else {
            System.out.println("两数相等，最大值="+a);
        }
    }
}
